<!DOCTYPE html>
   <html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>测试2</title>
</head>
<body>
   <h1>each 测试</h1>
<hr/>
<!-- th:each 每次遍历都会生成当前这个标签  （3个h4）-->
<h4 th:text="${user}" th:each="user:${users}"></h4><hr/>
<h4>
    <span th:each="user:${users}">[[${user}]]</span>
</h4>
</body>
</html>